package ${classPath};

import java.math.BigDecimal;
import java.util.Optional;
import java.util.Date;
import java.util.Set;
import java.util.List;
import java.util.Optional;
import org.springframework.stereotype.Repository;
import top.lemna.base.core.persistence.base.repository.BaseRepository;

@Repository
public interface ${domain}Repository extends BaseRepository<${domain}, Long> {
 
 
  
  Optional<${domain}> findBy<#list fieldList as field>-${field.name?cap_first}And</#list>(
  <#list fieldList as field>
  ${field.type} ${field.name}<#if field_has_next>,</#if>//${field.comment}
  </#list>
  );
  
  boolean existsBy<#list fieldList as field>-${field.name?cap_first}And</#list>(
  <#list fieldList as field>
  ${field.type} ${field.name}<#if field_has_next>,</#if>//${field.comment}
  </#list>
  );
  
}
